program to find average of n number